<link href="build/viewer/viewer.min.css" rel="stylesheet" type="text/css" media="screen"/>
<script src="build/viewer/viewer.min.js" type="text/javascript"></script>
<style>
.images li{
	list-style: none;
	float:left;
	padding:10px;
}
img{
	cursor:pointer;
}
</style>
<div class="pageContent">
	<form method="post" action="#" class="pageForm required-validate" enctype="multipart/form-data" onsubmit="return iframeCallback(this, navTabAjaxDone);">
		<div class="pageFormContent " layoutH="56">
			<p>
				<label>商户编号：</label>
				<input type="text" value="#(merch.code )" readonly="readonly" size="30"/>
			</p>
			<p>
				<label>商户名：</label>
				<input type="text" size="30" value="#(merch.name )" readonly="readonly"/>
			</p>
			<p>
				<label>所属机构：</label>
				<input type="text" size="30" value="#(org.name )" readonly="readonly"/>
			</p>
			
			<p>
				<label>交易币种：</label>
				<input type="text" size="30" value="#(merch.cointype )" readonly="readonly"/>
			</p>
			
			<p>
				<label>联系人：</label>
				<input type="text" size="30" value="#(merch.contacts )" readonly="readonly"/>
			</p>
			<p>
				<label>联系电话：</label>
				<input type="text" size="30" value="#(merch.contactsPhoneNo )" readonly="readonly"/>
			</p>
			<p>
				<label>联系地址：</label>
				<input type="text" size="30" value="#(merch.address )" readonly="readonly"/>
			</p>
			<p>
				<label>法定代表人：</label>
				<input type="text" size="30" value="#(merch.legalPerson )" readonly="readonly"/>
			</p>
			<p>
				<label>法定代表人证件号：</label>
				<input type="text" size="30" value="#(merch.certsNo )" readonly="readonly"/>
			</p>
			<div class="divider"></div>
				<label>商户文件：</label>
				<ul class="images">
				  	#for(item:fileNameList)
					    <li>
					    	<div class="col-sm-12 col-md-12">
						        <div class="thumbnail">
					    		<img src="admin/merch/showFile?fileName=#(item)&merchCode=#(merch.code)" width="300px" height="300px" alt="Picture" >
						        </div>
						    </div>
					    </li>
				  	#end
				  </ul>
		</div>
		<div class="formBar">
			<ul>
			
			<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="jsdownlaod()">下载固定二维码</button></div></div></li>
			
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
$('.images').viewer();
function jsdownlaod(){
	window.location.href = "admin/merch/downloadQcodeJpg?merch=#(merch.code )&name=#(merch.name )";
}
</script>
